#include "compile\COMPILE_CONFIG.h"
#ifdef RUN_TESTS

#define BOOST_AUTO_TEST_MAIN
#include <boost/test/included/unit_test.hpp>


#include "include.h"
#include "app\appmain.h"

#include "compile/debug_memoryleaks"

/*
BOOST_AUTO_TEST_CASE(MAINAPP)
{
	int argc=0;
	app::AppMain appmain;
	appmain.init(argc,NULL);
    int ret = appmain.run();
    appmain.done();
}
*/


#else

#include "include.h"
#include "app\appmain.h"


int main(int argc, char* argv[])
{
	boost::timer globalTimer;

	std::cout << "RUNNING APPLICATION" << std::endl;

	app::AppMain appmain;
	appmain.init(argc, argv);

    int ret = appmain.run();

    appmain.done();

	std::cout << "Execution time: " <<  globalTimer.elapsed() << std::endl;

	return ret;
}

#endif
